/**
 * 
 */
package controllers.admin;

import models.admin.Pizza;
import controllers.BaseController;
import controllers.Check;

/**
 * @author rjanixz
 *
 */
public class Pizzas extends BaseController {

	@Check(value="ADD")
	public static void save(Pizza pizza) {
		pizza.save();
		redirect("/admin/Pizzas/all");
	}
	
	@Check(value="EDIT")
	public static void update(Pizza pizza) {
		pizza.save();
		redirect("/admin/Pizzas/all");
	}
}
